package com.example.mavendemo5.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/demo-api")
public class DemoController {

    @GetMapping(value = "/test", produces = "text/plain")
    public String testDemoRest(String article) {
        return "this article id is " + article;
    }
}
